//
//  CCSlider.h
//  DiceGameBox2D
//
//  Created by jasonsalex on 13-1-29.
//


#import "CCSprite.h"
#import "cocos2d.h"

@interface CCSlider : CCSprite<CCTargetedTouchDelegate>
{
    id target;//调用对象
    SEL callBack; //调用函数
    
    float maxValue;//最大数值
    float minValue;//最小数值
    
    float curValue;//当前数值
    
    CCSprite *btnSprite;//划块按钮
    CCSprite *bgSprite;
    CGPoint curMove;
    
}

@property(readwrite)float maxValue;
@property(readwrite)float minValue;
@property(readonly)float curValue;

+(id)sliderWithCCSlider:(id)button background:(id)bg target:(id)target callback:(SEL)cb;
-(id)sliderWithInit:(id)button background:(id)bg target:(id)target callback:(SEL)cb;

-(void)setCurValue:(float)curValue;//修改当前数值

@end
